<?php if (!defined('THINK_PATH')) exit();?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns=http://www.w3.org/1999/xhtml>
<head>
<meta charset="utf-8" />
<title><?php echo ($WEBTITLE); ?></title>
<meta content="<?php if($DESCRIPTION): echo ($DESCRIPTION); endif; ?>" name="description">
<meta content="<?php if($KEYWORDS): echo ($KEYWORDS); endif; ?>" name="keywords">
<meta http-equiv="X-UA-Compatible" content="IE=7" />
<link rel="stylesheet" type="text/css" href="../Public/Css/base.css" />
<link rel="stylesheet" type="text/css" href="../Public/Styles/<?php echo (C("styleid")); ?>/css.css" />
<script type="text/javascript" src="/Public/Js/Base.js"></script><script type="text/javascript" src="/Public/Js/prototype.js"></script><script type="text/javascript" src="/Public/Js/mootools.js"></script><script type="text/javascript" src="/Public/Js/Think/ThinkAjax.js"></script><script type="text/javascript" src="/Public/Js/Form/CheckForm.js"></script><script type="text/javascript" src="/Public/Js/Util/ImageLoader.js"></script><script type="text/javascript" src="/Public/Js/jquery.js"></script><script type="text/javascript" src="/Public/Js/Focus/myfocus.js"></script> 
<SCRIPT LANGUAGE="JavaScript">
<!--
var $J=jQuery.noConflict();
//指定当前组模块URL地址 
var URL = '__URL__';
var APP = '__APP__';
var PUBLIC = '__PUBLIC__';
ImageLoader.startLoad();
jQuery(document).ready(function(){
    jQuery(document).bind("contextmenu",function(e){
        //return false;
    });
});
//-->
</SCRIPT>
<style>
.g_page {width:auto;}	
</style>
</head>
<body>
<div class="hwrap">
  <div id="header">
    <h1><?php if($logo): ?><img alt="<?php echo (C("company_name")); ?>" title="<?php echo (C("company_name")); ?>" src="<?php echo ($logo); ?>" /><?php endif; ?></h1>
    <p><?php echo (C("company_name")); ?></p>
    <div class="menu r">
        <span><a href='javascript:' onClick="AddFavorite(window.location,document.title);" title="加入收藏" class="topico02">加入收藏</a></span>
    </div>
    <div id=nav class="nav">
        <div class="navl"></div>
        <div class="navr"></div>
        <?php echo (getnavhtml($topnavlist,'menu_nav', 10, 'navlist navbar', '', 1)); ?>
    </div>
</div>
<script>
var addToFavoritesTips = '加入收藏失败，请使用Ctrl+D进行添加';
</script></div>

<!--内容-->
        <div class="cwrap">
        	
        	<!-- banner开始 -->
<div class="bwrap headerfocus"><div id="banner"><span class="xtop"></span><div class="slider"><div id="slider"><?php echo (getlistbymodule($list_Focus_AvSMmXEEhQnzY,'Focuspic',6,'update_time desc', '', 'focuspic_Focus_AvSMmXEEhQnzY',0)); if($list_Focus_AvSMmXEEhQnzY): ?><div id="Focus_AvSMmXEEhQnzY"><div class="loading"></div><div class="pic"><ul><?php if(is_array($list_Focus_AvSMmXEEhQnzY)): $i = 0; $__LIST__ = $list_Focus_AvSMmXEEhQnzY;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$fvo): $mod = ($i % 2 );++$i;?><li><a href="<?php echo ($fvo["url"]); ?>"><img src="http://<?php echo ($_SERVER['SERVER_NAME']); ?>/Public/Uploads/Focus/<?php echo ($fvo["pic"]); ?>" thumb="" alt="<?php echo ($fvo["title"]); ?>" text="<?php echo ($fvo["remark"]); ?>" /></a></li><?php endforeach; endif; else: echo "" ;endif; ?></ul></div></div><script type="text/javascript">myFocus.set({ id:'Focus_AvSMmXEEhQnzY',width: 950,height: 300,pattern:'mF_fancy' });</script><?php endif; ?></div><div id="slidernav" class="slidernav"></div></div><span class="xbottom"></span></div></div>
<SCRIPT LANGUAGE="JavaScript">
<!--
jQuery(document).ready(function(){
    if(trim(jQuery("#slider").html())=='')jQuery(".headerfocus").css("display", "none");
});
//-->
</SCRIPT>
<!-- banner结束 -->
						
						<div id="content" class="content">
                <div class="layout grid">
                    <span class="xtop"></span>
                    <div class="col-main">
                        <div class="main-wrap">
                            <div class="bg"><div class="mbox">
                                <div class="mbg prodt_con">
                                    <div class="mhd"><span><a href="<?php echo U('New/index?catid='.$data[catid], '', C('URLREWRITE'), false, true);?>">&lt;&lt;返回</a></span><h3>当前位置：<a href="<?php echo U('New/index', '', C('URLREWRITE'), false, true);?>"><?php echo ($CurModule[title]); ?></a><?php echo (getcategorypath($data["catid"],true, ' > ')); ?></h3></div>
                                    <div class="mbd cl">

			   							<div class="item_intro">
                        <div class="title"><h2><?php echo ($data["title"]); ?></h2><p><?php echo (todate($data["create_time"],'Y-m-d H:i')); ?></p></div>
			   								<div class="con cl">
			   								<?php echo ($data["content"]); ?>
			   								<?php if($data[tags]): ?><br><p><?php echo ($data["tags"]); ?></p><?php endif; ?>
			   								<?php if($NextTitle or $PrevTitle): ?><br><p><?php if($NextTitle): ?><span class="r">下一篇: <a href="<?php echo (getreadurl($NextTitle["id"],$NextTitle)); ?>" title="<?php echo ($NextTitle[title]); ?>"><?php echo ($NextTitle[title]); ?></a></span><?php endif; ?>
			   									<?php if($PrevTitle): ?><span class="l">上一篇: <a href="<?php echo (getreadurl($PrevTitle["id"],$PrevTitle)); ?>" title="<?php echo ($PrevTitle[title]); ?>"><?php echo ($PrevTitle[title]); ?></a></span><?php endif; ?></p><?php endif; ?>
			   								</div>
                                            
												<!-- 评论开始 -->
<h4><?php if($recordcount > 0): ?><span class="r" style="margin-right:20px;"><a href="<?php echo U('Comment/showlist?mdname='.$modname.'&id='.$data[id], '', C('URLREWRITE'), false, true);?>">More...</a></span><?php endif; ?>我要评论</h4>
<div class="consultation">
	<form method="post" id="commentform" action=""> 
	<div class="required">
     <label for="guest">姓名：</label><input type="text" value="" maxlength="100" size="10" class="inputText comment_nickname" name="nickname">		
     <label for="guest">电话：</label><input type="text" value="" maxlength="100" size="10" class="inputText" name="tel">
     <label for="guest">邮箱：</label><input type="text" value="" maxlength="100" size="10" class="inputText" name="email">     
  </div>
	<div class="required">
     <label for="guest">主题：</label><input type="text" value="" maxlength="100" size="50" class="inputText comment_title" style="width:480px;" name="title">
     <span>*</span>
  </div>   
  <div class="required">
     <label for="msg">内容：</label><textarea class="comment_contents" name="contents"></textarea>
     <input name="modid" type="hidden" value="<?php echo ($data["id"]); ?>">
     <input name="status" type="hidden" value="<?php echo (C("comment_check")); ?>">
     <input name="sort" type="hidden" value="0">
     <input name="module" type="hidden" value="<?php echo ($modname); ?>">
     <input name="moduletitle" type="hidden" value="评论">
     <input name="ajax" type="hidden" value="1">
  </div>
  <div class="vcode">
     <div class="r">
     		<div class="l" style="width:150px;margin-top:0px;"><span id="comment_tips"></span></div>
     		<input type="button" onclick="commentsubmit();" value="提交"  class="inputSubmit" /> 
     </div>
     <label for="captcha">验证码：</label><input type="text" id="verifyinput" value="" maxlength="25" class="inputText" name="verify">
     <img class="verifyImg" onclick="fleshVerify()" style="cursor:pointer; margin-top:-11px;" alt="点击更换验证码" src="<?php echo U('Comment/verify', '', C('URLREWRITE'), false, true);?>">
  </div>
  
  </form>
  <div class="consul guest">
     <div class="item_intro"><h4><?php if($recordcount > 0): ?><span class="r" style="margin-right:20px;"><a href="<?php echo U('Comment/showlist?mdname='.$modname.'&id='.$data[id], '', C('URLREWRITE'), false, true);?>">More...</a></span><?php endif; ?>【<?php echo ($data["title"]); ?>】共有 <?php echo ($recordcount); ?> 人评论</h4></div>
     <DIV class="commentlistTable">
     <?php if(is_array($list)): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><div class="tblist">                                      
         <table width="100%" summary="评论列表">
         <thead><tr><th colspan="2"><span class="r"><I>At <?php echo (date('Y-m-d H:i', $vo["create_time"])); ?> <?php if($vo[nickname]): ?>By <?php echo ($vo["nickname"]); endif; ?></I></span><h2><?php echo ($vo["title"]); ?></h2></th></tr></thead>
         <tbody><tr><th>评论内容：</th><td><?php echo ($vo["contents"]); ?></td></tr></tbody></table>
      </div><?php endforeach; endif; else: echo "" ;endif; ?>
  </DIV>
  </div>
</div>
<SCRIPT LANGUAGE="JavaScript">
<!--

function fleshVerify(type){
	//重载验证码
	var timenow = new Date().getTime();
	if (type)
	{
		jQuery('.verifyImg').attr("src", "<?php echo U('Comment/verify?adv=1', '', C('URLREWRITE'), false, true);?>?"+timenow);
	}else{
		jQuery('.verifyImg').attr("src", "<?php echo U('Comment/verify', '', C('URLREWRITE'), false, true);?>?"+timenow);
	}
}

function commentsubmit(){
	sendForm("commentform", "<?php echo U('Comment/insert', '', C('URLREWRITE'), false, true);?>", commentHandle, "comment_tips");
}

function sendForm(formId,action,response,target,effect){
	// Ajax方式提交表单
	if (CheckForm($(formId),'ThinkAjaxResult'))//表单数据验证
	{
		ThinkAjax.sendForm(formId,action,response,target);
	}
}

function commentHandle(data,status){
	if (status==1)
	{
		appendComment();
		jQuery('#commentform')[0].reset();
	}	
}

function appendComment(){
	 var nickname = "";
	 var title = jQuery(".comment_title").val();
	 var contents = jQuery(".comment_contents").val();
	 var commentTime = CurentTime();
	 if(jQuery(".comment_nickname").val() != '')nickname = ' By '+jQuery(".comment_nickname").val();
	 var commentHtml = '<div class="tblist"><table width="100%" summary="评论列表"><thead><tr><th colspan="2"><span class="r"><I>At '+commentTime+' '+nickname+'</I></span><h2>'+title+'</h2></th></tr></thead><tbody><tr><th>评论内容：</th><td>'+contents+'</td></tr></tbody></table></div>';
	 var commentHtml = commentHtml + jQuery(".commentlistTable").html();
	 jQuery(".commentlistTable").html('');
	 jQuery(".commentlistTable").append(commentHtml);
	 <?php if(C("comment_check")== 0): ?>alert("您的评论需要审核后才能显示！");<?php endif; ?>
	 
}

function CurentTime()
{
		var now = new Date();
		var year = now.getFullYear();
		var month = now.getMonth() + 1;
		var day = now.getDate();
		var hh = now.getHours();
		var mm = now.getMinutes();
		var clock = year + "-";
		if(month < 10)clock += "0";
		clock += month + "-";
		if(day < 10)clock += "0";
		clock += day + " ";
		if(hh < 10)clock += "0";
		clock += hh + ":";
		if (mm < 10) clock += '0'; 
		clock += mm; 
		return(clock);
}

//-->
</SCRIPT>
<!-- 评论结束 -->
                                            
			   							</div>
			   						</div>
                                </div>                                
                            </div></div><!-- end con -->
                        </div>
                    </div>
                    <div class="col-sub"><div class="bg"><div class="sinner">
                        <div class="mbox">
                            <div class="mbg down_list">
                                <div class="mhd"><h3>新闻分类</h3></div>
                                <div class="mbd">
																<ul>
																	<?php echo (getnavhtml($newlist,'category_new', 1, 'navcat')); ?>
																</ul>
																</div>
                            </div>
                        </div><!-- end cat_list -->
                        <div class="mbox">
                            <div class="mbg down_list">
                                <div class="mhd"><h3>最新新闻</h3></div>
                                <div class="mbd"><?php echo (getlistbymodule($lastestlist,'New',10,'update_time DESC')); ?>
																<ul>
																	<?php if(is_array($lastestlist)): $i = 0; $__LIST__ = $lastestlist;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><li>	<a href="<?php echo (getreadurl($vo["id"],$vo)); ?>" title="<?php echo ($vo["title"]); ?>"><h2 class="trigger"><?php echo (cutstr($vo["title"],30)); ?></h2></a></li><?php endforeach; endif; else: echo "" ;endif; ?>
																</ul>
																</div>
                            </div>
                        </div>
                        
                        <!-- end contact -->
<div class="mbox">
    <div class="mbg contact">
        <div class="mhd"><h3 title="联系我们">联系我们</h3></div>
        <div class="mbd">
            <ul>
                <li title="<?php echo (C("company_address")); ?>">地址：<?php echo (C("company_address")); ?></li>
                <li>邮编：<?php echo (C("company_postcode")); ?></li>
                <li>电话：<?php echo (C("company_tel")); ?></li>
                <li>传真：<?php echo (C("company_fax")); ?></li>
                <li>Email：<?php echo (C("company_email")); ?></li>
            </ul>
        </div>
    </div>
</div>
<div class="feedback">
    <a class="feedbackdrag" href="<?php echo U('Comment/index', '', C('URLREWRITE'), false, true);?>"></a>
</div>
<!-- end contact -->
                                               
                   </div></div></div>    
                </div>
                <span class="xbottom"></span>
            </div>    
        </div>
<!--/内容-->

<div class="fwrap">
    <div id="footer" class="cl"><?php echo (getnavhtml($ftlist,'menu_bottom', 0, '', '', 1)); ?>
        <p><?php if(is_array($ftlist)): $i = 0; $__LIST__ = $ftlist;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i; if($key > 0): ?><span class="pipe">|</span><?php endif; ?><a href="<?php if($vo[link]): echo ($vo["link"]); else: echo U($vo[name].'/index', '', C('URLREWRITE'), false, true); endif; ?>" ><?php echo ($vo["title"]); ?></a><?php endforeach; endif; else: echo "" ;endif; if($FOOTSEOKEY): if(is_array($FOOTSEOKEY)): $i = 0; $__LIST__ = $FOOTSEOKEY;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$sk): $mod = ($i % 2 );++$i;?><span class="pipe">|</span><a href="<?php if($sk[link]): echo ($sk["link"]); else: ?>http://<?php echo ($_SERVER['SERVER_NAME']); ?>/<?php endif; ?>" ><?php echo ($sk["name"]); ?></a><?php endforeach; endif; else: echo "" ;endif; endif; ?></p>
        Copyright&copy;2012 <?php echo (C("company_name")); ?> &nbsp; <?php if($Think.config.icp_no): ?><a href="http://www.miitbeian.gov.cn/" target="_blank"><?php echo (C("icp_no")); ?></a> &nbsp;<?php endif; if((C("tech_off")) == "0"): ?><span class="support">  技术支持：<a href="http://seophp.taobao.com/" target="_blank">SEOPHP</a>  &nbsp;<?php endif; if((C("indexadmin_off")) == "0"): ?>[<a href="__APP__/Admin">管理入口</a>] &nbsp;<?php endif; if($Think.config.site_tongji): echo (C("site_tongji")); endif; ?></span>
       <span class="xbottom"> </span>
    </div>
</div>

<?php if($KEFU_LIST): endif; ?>
<?php if($Think.config.share_code): echo (C("share_code")); endif; ?>
	
</body>
</html>